import request from '@/utils/request'

// 新增
export function archiveEnroll(data) {
  return request({
    url: '/archive/archiveEnroll',
    method: 'POST',
    data: data
  })
}

// 档案登记记录列表
export function archiveEnrolllist(query) {
    return request({
      url: '/archive/archiveEnroll/list',
      method: 'get',
      params: query
    })
  }
// 获取详情
export function archiveEnrollDetile(id) {
    return request({
      url: '/archive/archiveEnroll/'+id,
      method: 'get',
    })
  }
// 修改
export function archiveEnrollDeit(data) {
    return request({
      url: '/archive/archiveEnroll',
      method: 'PUT',
      data: data
    })
  }
//删除
export function archiveEnrollDelete(id) {
    return request({
      url: '/archive/archiveEnroll/'+id,
      method: 'DELETE',
    })
  }